﻿CREATE TABLE [dbo].[Quadro] (
    [Id]           INT             IDENTITY (1, 1) NOT NULL,
    [IdUsuario]    INT             NOT NULL,
    [IdEquipe]     INT             NULL,
    [Nome]         NVARCHAR (70)   NOT NULL,
    [Descricao]    NVARCHAR (2048) NULL,
    [DataInicio]   DATETIME        NULL,
    [DataFim]      DATETIME        NULL,
    [DataCadastro] DATETIME        DEFAULT (getdate()) NOT NULL,
    [Excluido]     BIT             DEFAULT ((0)) NOT NULL,
    [Arquivado]    BIT             DEFAULT ((0)) NOT NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK_Quadro_Usuario] FOREIGN KEY ([IdUsuario]) REFERENCES [dbo].[Usuario] ([Id])
);

